/**
 * \file CMimeType.h
 * \author Corentin Le Bail
 * \date 2009-2012
 * \brief Fichier de déclaration de la class CMimeType.
 */
//------------------------------------------------------------------------------
#ifndef __CMIMETYPE_H__
#define __CMIMETYPE_H__
//------------------------------------------------------------------------------
#include <QString>
#include <QMap>
#include <QList>
//------------------------------------------------------------------------------
/**
 * \class CMimeType CMimeType.h "CMimeType.h"
 * \brief Classe singleton gérant les types mimes
 */
class CMimeType
{
	public:
		/**
		 * \fn static CMimeType * getInstance(void)
		 * \return L'instance de la classe
		 */
		static CMimeType * getInstance(void);
		/**
		 * \fn QString getMimeType(QString ext)
		 * \param[in] ext L'extention recherché
		 * \return Le type mime assossié à l'extention
		 */
		QString getMimeType(QString ext);
		/**
		* \fn QList<QString> getExtensions(QString mimeType)
		 * \param[in] mimeType Le type mime
		 * \return La liste des extensions assossié au type mime
		*/
		QList<QString> getExtensions(QString mimeType);
	private:
		static CMimeType * _instance;
		QMap<QString, QString> _mimeType;
		
		CMimeType(void);
};
//------------------------------------------------------------------------------
#endif// __CMIMETYPE_H__
//------------------------------------------------------------------------------